<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>评估题目</title>
		<style type="text/css">
			html,body{
				min-height: 500px;
			}
		</style>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/fuwu/pinggutimu.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/layer.css"/>
		<script src="../../js/layer.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/vconsole.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var vConsole = new VConsole();
		</script>
	</head>
	<body>
		<header class="positionR colorF height7">
			<img src="../../img/yihu/fanhui.png" onclick="window.history.go(-1)"/>
			<div class="height30"></div>
			<div id="pingguname" class="textC font1-4">自理能力评估</div>
		</header>
		<div id="main" class="none" style="height: 88%">
			<div class="renyuanxinxi">
				<p class="chenter font1-4 LH3">
					<img class="headimg radius50" :src="ip+oldman.photo" onerror="this.src='../../img/yiyao/WomanElderly.png'" v-if="oldman.xb == '0'"/>
					<img class="headimg radius50" :src="ip+oldman.photo" onerror="this.src='../../img/yiyao/ManElderly.png'" v-else/>
					&nbsp;&nbsp;{{oldman.xm}}&nbsp;&nbsp;
					<img class="xingbie" src="../../img/yihu/03.png" v-if="oldman.xb == '0'"/>
					<img class="xingbie" src="../../img/yihu/04.png" v-else/>&nbsp;&nbsp;
					<span>{{oldman.nl}}</span>&nbsp;&nbsp;&nbsp;&nbsp;
					<span class="yipingshu font1-2">已评估{{pgcs}}次</span>
				</p>
				<div class="overflowH">
					<div class="fl width25 font1-2 LH3">养老模式</div>
					<div class="mui-input-row mui-radio mui-left fl width35" style="clear: none;">
						<input style="padding-top: 5px;" name="radio1" type="radio" value="1" v-model="jjpg">
						<label class="font1-2">居家养老</label>
					</div>
					<div class="mui-input-row mui-radio mui-left fl width35" style="clear: none;">
						<input style="padding-top: 5px;" name="radio1" type="radio" value="0" v-model="jjpg">
						<label class="font1-2">机构养老</label>
					</div>
				</div>
				<div class="mui-input-row">
					<label class="font1-2" style="padding-left: 0;">评估人员</label>
					<input class="font1-2" type="text" placeholder="普通输入框" v-model="pgry" readonly="readonly">
				</div>
				<div class="mui-input-row">
					<label class="font1-2" style="padding-left: 0;">评估日期</label>
					<input class="font1-2" type="text" placeholder="普通输入框" v-model="pgri" readonly="readonly">
				</div>
				<!--<div class="mui-input-row" v-if="pglx=='yyfx_pg'">
					<label class="font1-2" style="padding-left: 0;">疾病名称及时间</label>
					<input class="font1-2" type="text" placeholder="请输入" v-model="jcjborhbsj" >
				</div>
				<div class="mui-input-row" v-if="pglx=='lngnzkzh_pg'">
					<label class="font1-2" style="padding-left: 0;">就诊原因</label>
					<input class="font1-2" type="text" placeholder="请输入" v-model="jzyy" >
				</div>-->
			</div>
			<div class="liangbiao">
				<p class="pingguxiz textR PT40" @click="xizhe()">查看评定细则</p>
				<p class="textC PT10">
					<img class="verticlM" src="../../img/fuwu/14.png"/>
					<span class="font1-4" style="color: #697dcb;">评估量表</span>
					<img class="verticlM" src="../../img/fuwu/15.png"/>
				</p>
				<ul class="tihao width80 Mauto PT20 overflowH">
					<!--<li class="fl font1 LH3 radius50 textC MR5 MT5 colorF" v-for="index in 10" :class="{yizuo : true}"  @click="opennum(index-1)">{{index}}</li>-->
					<li class="fl font1 LH3 radius50 textC MR5 MT5 colorF" v-for="(list,index) in assessResponse" :class="{yizuo : list.assessId}" @click="opennum(index)">{{index+1}}</li>
				</ul>
				<p class="tishu width100 textC font1 PT10">共 <span style="color: #009CFF;">{{assessResponse.length}}</span> 题，已做<span style="color: #EC971F;">{{completed}}</span> 题</p>
					<div class="but width70 colorF LH3 textC font1-2" v-if="completed == 0"  @click="opennum(0)">
						<span>开始做题</span>
					</div>
					<!--<div class="but2 width80 colorF LH3 textC font1-2">
						<span @click="" class="fl">&nbsp; &nbsp; &nbsp; &nbsp;重新做题&nbsp; &nbsp; &nbsp; &nbsp;</span>
						<span @click="opennum(0)" class="fr">&nbsp; &nbsp; &nbsp;继续做题&nbsp; &nbsp; &nbsp;</span>
					</div>-->
					<div class="but width70 colorF LH3 textC font1-2" v-else-if="completed == assessResponse.length" @click="tijiao">
						<span>上传评估结果</span>
					</div>
					<div class="but2 width80 colorF LH3 textC font1-2" v-else>
						<span @click="zhuanchun" class="fl">&nbsp; &nbsp; &nbsp; &nbsp;暂存&nbsp; &nbsp; &nbsp; &nbsp;</span>
						<span @click="opennum(0)" class="fr">&nbsp; &nbsp; &nbsp;继续做题&nbsp; &nbsp; &nbsp;</span>
					</div>
			</div>
			<!--弹框-->
			<div class="Popup width100 height100" v-if="Popupshow">
				<div class="content width85 radius10P PT20 positionR" v-if="assessstyle == 0">
					<img class="fr" src="../../img/pinggu/14.png" style="position: absolute;top:0.5rem;right: 0.5rem; height: 1.5rem;" @click="closepinggu"/>
					<p class="overflowH"><span class="fl font1-4 PL20 PB20 PR20">{{assessResponse[assessnum].assessPosition}}:{{assessResponse[assessnum].assessName}}</span></p>
					<div v-if="assessResponse[assessnum].Positionid != 'yl' && assessResponse[assessnum].Positionid != 'jcjborhbsj' && assessResponse[assessnum].Positionid != 'jzyy'">
						<div class="assesslist PL30 overflowH PB20" v-for="(item,index) in assessResponse[assessnum].assesslist" @click="choose(item.assessfenzhi)">
							<img class="fl PT5" src="../../img/pinggu/12.png" v-if="assessResponse[assessnum].assessId == item.assessfenzhi" />
							<img class="fl PT5" src="../../img/pinggu/10.png" v-else/>
							<p class="width80 fl PL10 font1-2 colord9">
								{{item.assessContent}}
								<input v-if="(assessResponse[assessnum].Positionid == 'yfcsqtK'||assessResponse[assessnum].Positionid == 'yfcsqtI'||assessResponse[assessnum].Positionid =='hlcs5') && item.assessContent=='有'" type="text" name="" id=""  v-model="yfcsqt" />
							</p>
						</div>
					</div>
					<div v-else-if="assessResponse[assessnum].Positionid=='yl'" class="ML10">
						<input style="width: 40%;" type="number" v-model="assessResponse[assessnum].assessId" /> 
						<span>ml/天</span>
					</div>
					<div v-else class="ML10">
						<input style="width: 90%;" type="text" @blur="shiqujd()" v-model="assessResponse[assessnum].assessId" /> 
					</div>
					
					<div class="tijiao width50 LH2 font1-4 textC Mauto MB20 colorF" v-if="assessnum == assessResponse.length-1" @click="tijiao">提交</div>
					<p v-else><span @click="upassess" class="upti fl font1-4 colorF ML20 LH2 MB10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上一题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span @click="nextassess" class="next font1-4 fr MR20 LH2 colorF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下一题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
					
				</div>
				<div class="content width85 radius10P textC positionR" v-else-if="assessstyle == 1">
					<img src="../../img/pinggu/13.png" style="margin-top: -2.5rem;height: 6rem;" />
					<img class="fr" src="../../img/pinggu/14.png" style="position: absolute;top:1rem;right: 1rem; height: 2rem;" @click="closepinggu" />
					<div class="font1-2 colord9 PB20 LH2">
						评估表已填写完成，<br />评估得分：<span style="color: #EC971F;">{{pgzhongfeng}}分</span> 评估结果：{{dengjiarr.text[pgjgmc]||'---'}}
					</div>
					<div class="font1-4 colorF LH3" style="background: #6eb3ff; border-radius: 0 0 10px 10px;" @click="tijiaojieguo">
						上传评估结果
					</div>
				</div>
				<div class="content width85 radius10P PT20 textC positionR" v-else-if="assessstyle == 2">
					<img class="fr" src="../../img/pinggu/14.png" style="position: absolute;top:1rem;right: 1rem; height: 2rem;" @click="closepinggu" />
					<div class="font1-2 colord9 PB20 LH2">
						<span style="color:#6eb3ff ;">上传成功</span><br />您的评估已经上传成功
					</div>
					<div class="font1-4 colorF LH3 overflowH" style="border-radius: 0 0 10px 10px;border-top: 0.5px solid rgba(136, 136, 136, 0.18);">
						<span class="fl width50 colord9" @click="openurl">查看评估详情</span>
						<span class="fr width50" style="background: #6eb3ff;" onclick="window.history.go(-1)">下一个评估</span>
					</div>
				</div>
			</div>
		</div>
		<script src="../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/jquary.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/fuwu/questionoption.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/fuwu/pinggutimu.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
